package com.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.model.DocumentInfo;
import com.model.GetDetailProgress;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface GetDetailProgressMapper extends BaseMapper<GetDetailProgress> {

    @Select("SELECT *\n" +
            "FROM document_summary a\n" +
            "WHERE NOT EXISTS (\n" +
            "\tSELECT *\n" +
            "\tFROM get_detail_progress b\n" +
            "\tWHERE a.id = b.article_summary_id\n" +
            ")")
    List<DocumentInfo> queryAvailableLink();

}
